Skip to content

[Feat] 산 목록 관련 기능 구현#14

Merged
howooyeon merged 5 commits into
developfrom
feat/#13-mtList
May 7, 2026
Merged

[Feat] 산 목록 관련 기능 구현#14
howooyeon merged 5 commits into
developfrom
feat/#13-mtList

Conversation

@howooyeon

Copy link
Copy Markdown
Contributor

🧾 요약

  • 산 목록 조회, 키워드 검색(이름/주소), 상세 조회 API 구현
  • 상세 조회 시 코스, 교통, 편의시설, 맛집, 리뷰를 방면 기준으로 그룹핑하여 프론트엔드 파싱
    친화적으로 응답합니다.

🔗 이슈

✨ 변경 내용

도메인

  • Mountain, Course, Transportation, Amenity, RestaurantSection, Restaurant 엔티티 추가
  • Review 엔티티 추가 (커뮤니티 연결 전까지 산 상세 조회용으로만 사용)
  • Difficulty, TransportationType, AmenityType 열거형 추가

API

  • GET /api/mountains — 산 목록 조회
  • GET /api/mountains/search?keyword= — 산 이름/주소 키워드 검색
  • GET /api/mountains/{mountainId} — 산 상세 조회

응답 구조

  • 교통: publicTransport / parking을 방면별로 그룹핑 (Map<String, List<TransportationItem>>)
  • 편의시설: 방면별 편의시설 타입 리스트 (Map<String, List<AmenityType>>)
  • 맛집: 섹션(제목) → 맛집 리스트 구조
  • 리뷰: @EntityGraph로 N+1 방지, 최대 20개 제한

응답 코드

  • MOUNTAIN_200_1 / MOUNTAIN_200_2 / MOUNTAIN_200_3 — 성공
  • MOUNTAIN_404_1 — 산 없음
  • BAD_REQUEST — 검색 키워드 누락

설정

  • application.yaml 데이터소스, JWT, 카카오, MinIO 환경변수 설정 추가

✅ 확인

  • 빌드 OK
  • 테스트 OK

📝 참고

  • 이미지 업로드(MinIO/Presigned URL) 관련 코드는 별도 커밋 예정
  • 리뷰 작성 API는 커뮤니티 기능 연결 시 구현 예정
  • 위도/경도 필드 추가됨 (추후 가까운 순 정렬용)

@howooyeon
howooyeon requested review from JangInho and pooreumjung May 5, 2026 18:04
@howooyeon howooyeon self-assigned this May 5, 2026
Comment thread src/main/resources/application.yaml
Comment thread src/main/resources/application.yaml

@pooreumjung pooreumjung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니당~

@JangInho

JangInho commented May 7, 2026

Copy link
Copy Markdown
Contributor

저도 페이징 말고는 없는 것 같습니다! 고생하셨습니다~

@JangInho JangInho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구웃!

@howooyeon
howooyeon merged commit 58acc00 into develop May 7, 2026
@howooyeon howooyeon added the enhancement New feature or request label May 8, 2026
@howooyeon
howooyeon deleted the feat/#13-mtList branch May 17, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 산 도메인 API 구현 (목록 조회, 검색, 상세 정보)

3 participants